import { Connection } from "mongoose";
import { AdminUserModel } from "./admin-user.schema";

/**后台模块相关表 */
export const AdminModels = [
	//后台管理用户表
	{
		provide: 'ADMIN_USER_MODEL',
		useFactory: (connection: Connection) => connection.model('AdminUser',AdminUserModel),
		inject: ['DATABASE_CONNECTION'],
	},
];
